{include file="index/header" /}
<body>
	<div class="panel admin-panel margin-top" id="edit">
		<div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 增加内容</strong></div>
		<div class="body-content">
			<form method="post" class="form-x" id="form2" action="{:url('admin_teacher')}">    
				<div class="form-group">
					<div class="label">
						<label>班级名称：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="{$data.class_name}" readonly="" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>选择老师：</label>
					</div>
					<div class="field" style="padding-top:8px;"> 
						<table class="table table-hover">
							<tr>
								{foreach $teacher as $k=>$v}
								{if (($k%5) eq 0) && ($k neq 0)}
								</tr>
								{/if}
								<td><input id="ishome"  type="checkbox" name="admin_id[]" value="{$v.admin_id}" <?php if(in_array($v['admin_id'],$arr)){echo 'checked';}?>/>{$v.admin_name}</td>
								{/foreach}
							</tr>
						</table>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>选择督导：</label>
					</div>
					<div class="field" style="padding-top:8px;"> 
						<table class="table table-hover">
							<tr>
								{foreach $master as $k=>$v}
								{if (($k%5) eq 0) && ($k neq 0)}
								</tr>
								{/if}
								<td><input id="ishome"  type="checkbox" name="master_id[]" value="{$v.admin_id}" <?php if(in_array($v['admin_id'],$arr)){echo 'checked';}?>/>{$v.admin_name}</td>
								{/foreach}
							</tr>
						</table>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
					</div>
				</div>
				<input type="hidden" name="class_id" value="{$data.class_id}">
				<input type="hidden" name="nav_id" value="{$nav_id}">
			</form>
		</div>
	</div>
</body></html>